FernleafSystems\Wordpress\Plugin\Shield\Modules\IPs\Lib\IpRules\IpRuleStatus A

Total Complexity 70
Dependencies 10
Dependents 26
Total lines 304
Lines of code 212
Logical lines of code 105
Comment lines 35
Methods 27
Properties 3

Methods 27

Method Rating Maintainability Complexity Lines of code
getRulesForAutoBlock()
A
46 9 40
purgeDuplicateRulesForWhiteAndBlack()
A
51 9 29
loadRecordsForIP()
S
52 6 26
isUnBlocked()
S
58 6 16
getRules()
S
57 4 17
hasCrowdsecBlock()
S
64 3 10
removeRecordFromCache()
S
68 3 7
isBlockedByShield()
S
78 3 3
hasAutoBlock()
S
74 3 4
isBlockedByCrowdsec()
S
79 2 3
getOffenses()
S
75 2 4
getBlockType()
S
78 2 3
hasHighReputation()
S
70 2 7
getRuleForAutoBlock()
S
75 2 4
isBlocked()
S
79 2 3
getRulesForShieldBlock()
S
79 1 3
getIP()
S
82 1 3
ClearStatusForIP()
S
79 1 3
getRulesForCrowdsec()
S
80 1 3
getRulesForBypass()
S
79 1 3
getRulesForBlock()
S
78 1 3
isAutoBlacklisted()
S
80 1 3
hasRules()
S
80 1 3
hasManualBlock()
S
80 1 3
getRulesForManualBlock()
S
79 1 3
isBypass()
S
80 1 3
__construct()
S
81 1 3